public class test {
    public static void main(String[] args) {
        Heap heap = new Heap(10);
        Heap heap1 = new Heap(10);
        int[] array = {27,15,19,18,28,34,65,49,25,37 };
        heap.insert(array);
        heap.creatHeap();
        heap.offer(40);
        System.out.println(heap.poll());
        heap.heapSort();
        heap1.insert(array);
        heap1.heapSort();
    }
}
